﻿using DTOs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Domain.Service.Interfae
{
    public interface IRoleMenuService
    {
        /// <summary>
        /// 角色树形
        /// </summary>
        /// <returns></returns>
        Task<List<Menument>> GetRoleAsync();
        /// <summary>
        /// 菜单树形
        /// </summary>
        /// <returns></returns>
        Task<List<Menument>> GetMenuAsync(int rid);
        /// <summary>
        /// 添加角色菜单关系
        /// </summary>
        /// <param name="roleMenu"></param>
        /// <returns></returns>
        Task<int> AddRoleMenu(int roleId,List<int> MenuId);
        /// <summary>
        /// 根据角色ID反填菜单
        /// </summary>
        /// <param name="rid"></param>
        /// <returns></returns>
        Task<List<RoleMenu>> GetMenuValue(int rid);
        //Task<int> GetAdd(RoleMenuDto roleMenuDto);
       

    }
}
